package animationEngine;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

/**
 * AnimatingStringSearch
 * Team.java
 * Purpose: Creates a form which displays the team members and the supervisor
 * 			of the project. It simply closes by clicking the ok button.
 *
 * @author Andrei Palade
 * @author David McBrierty
 * @author Garry Sharp
 * @author Hristo Georgiev
 * @author John Dennis
 * @author Marco Sarconi
 * @version 1.0.1
 */
public class Project extends javax.swing.JFrame {

	/** Generated by Eclipse */
	private static final long serialVersionUID = 1623928134301382431L;

	/** Generated by NetBeans */
	private javax.swing.JButton jButton1;
	
	/** Generated by NetBeans */
	private javax.swing.JScrollPane jScrollPane1;
	
	/** Generated by NetBeans */
	private javax.swing.JTextArea jTextArea1;
	
	/** Creates and new Form */
	public Project() {
		initComponents();
	}

	/** This method is called from within the constructor to
	 * initialise the form.
	 * WARNING: Do NOT modify this code. The content of this method is
	 * always regenerated by the Form Editor.
	 */
	void initComponents() {

		jButton1 = new javax.swing.JButton();
		jScrollPane1 = new javax.swing.JScrollPane();
		jTextArea1 = new javax.swing.JTextArea();

		setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

		jButton1.setText("Ok");
		jTextArea1.setColumns(20);
		jTextArea1.setEditable(false);
		jTextArea1.setRows(5);
		jTextArea1.setText("The aim of this project is to build a system\nwhich can be used to animate/visualize \nthe steps of string search algorithms. The \npotential algorithms include: brute force,\nknuth-morris-pratt, boyer-moore. As the \nmotivation of the tool is to aid students \nwith the understanding of the algorithms,\nthe interface should to be aimed at achieving \nthis and also provide information on the \ndifferent algorithms( and depending on \nprogress comparisons between the \nalgorithms). ");
		jScrollPane1.setViewportView(jTextArea1);

		javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
		getContentPane().setLayout(layout);
		layout.setHorizontalGroup(
				layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
						.addContainerGap(132, Short.MAX_VALUE)
						.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)
						.addGap(130, 130, 130))
						.addGroup(layout.createSequentialGroup()
								.addGap(35, 35, 35)
								.addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 307, Short.MAX_VALUE)
								.addGap(30, 30, 30))
				);
		layout.setVerticalGroup(
				layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
						.addGap(18, 18, 18)
						.addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 271, Short.MAX_VALUE)
						.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
						.addComponent(jButton1)
						.addContainerGap())
				);

		/**
		 * Disposes of this form when clicked
		 */		
		jButton1.addActionListener(new ActionListener() {

			@Override
			public void actionPerformed(ActionEvent arg0) {

				dispose();
			}
		});

		pack();
	}
}
